x11: Declare variable for the inner loop
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 9 Sep 2015 14:05:15 +0000 (16:05 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Wed, 9 Sep 2015 14:46:26 +0000 (16:46 +0200)
commitdbf85cc4dba2d659c65f18caadad256304a1f5d1
treed92d9b1f5456868b78937ba33cb8f4624ac3ea26
parentf7894a758897afb5f47d0d4b9043b6396e839bda
x11: Declare variable for the inner loop

Otherwise the outer loop control variable is messed up, and we end
up with uninitialized axes if there were any more valuators after
the XIKeyClass one.

This bug was sneakily introduced by fdb9a8e14, many thanks to
Carlos Soriano for helping spot the source of this bug.

https://bugzilla.gnome.org/show_bug.cgi?id=753431
gdk/x11/gdkdevicemanager-xi2.c